import { Component, Inject, OnInit } from '@angular/core';
import { LoggerService } from '../logger.service';
import { BetterLoggerService } from '../better-logger.service';
import { APP_CONFIG } from '../token';
import { FlowerService } from '../flower.service';

@Component({
  selector: 'app-flower',
  template: `
    <p>
      flower works!
    </p>
  `,
  styles: [
  ]
})
export class FlowerComponent implements OnInit {

  constructor(
    private loggerServe: BetterLoggerService,
    @Inject(APP_CONFIG) private tokenValue: string,
    private flowerServe: FlowerService
  ) {

  }

  ngOnInit(): void {
    // this.loggerServe.log('flower');
    // console.log('tokenValue--', this.tokenValue);
    console.log(this.flowerServe.logFlower());
  }

}
